package com.idstrust.wiseone.sg.wisehr.common.connection;

import com.ibatis.sqlmap.client.SqlMapClient;

public class ConnUtil {
	
	private static SqlMapClient hrSqlMapCm;
	private static SqlMapClient woSqlMapCm;
	
	private ConnUtil(){}
	
	public static SqlMapClient getHRConn(){
		if(hrSqlMapCm == null){
			HRSqlMapConfig hrConf = new HRSqlMapConfig();
			hrSqlMapCm = hrConf.getSqlMapInstance();
		}
		return hrSqlMapCm;
	}
	
	public static SqlMapClient getWOConn(){
		if(woSqlMapCm == null){
			WOSqlMapConfig woConf = new WOSqlMapConfig();
			woSqlMapCm = woConf.getSqlMapInstance();
		}
		return woSqlMapCm;
	}
}
